<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>遍历对象的属性</title>
    </head>
    <body>
        <script>
            var books={
                books1:'《javascript前端开发教程》',
                books2:'《Node.js核心基础教程》',
                books3:'《HTML移动Web开发》',
            };
            for(var k in book){
                document.write(k +book[k]);
            }
            
        </script>
    </body>
</html>